package Task12;

public class DriverTest {
    public static void main(String[] args) {
        Driver driver= new Driver();
        BMW bmw=new BMW();
        QQ qq=new QQ();
        Benz benz=new Benz();
        driver.run(bmw);
        driver.run(qq);
        driver.run(benz);

        Car audi=new Audi();
        driver.run(audi);
    }
}
